#!/bin/bash

cp -f /configscript-temp.txt /configscript.txt
sed -i "s#DOMAIN_NAME#`echo $DOMAIN_NAME`#g" /configscript.txt
sed -i "s#PASS_WORD#`echo $PASS_WORD`#g" /configscript.txt
sed -i "s#ADMIN_PORT#`echo $ADMIN_PORT`#g" /configscript.txt
sed -i "s#ADMIN_SSL_PORT#`echo $ADMIN_SSL_PORT`#g" /configscript.txt
/u01/Oracle/Middleware/wlserver_10.3/common/bin/config.sh -mode=silent -silent_script=/configscript.txt && \
DM=`echo $DOMAIN_NAME` && \
sh /u01/Oracle/Middleware/user_project/domains/$DM/startWebLogic.sh
